//
//  UIView+WebCache.h
//  ZYWebImage
//
//  Created by wzp on 2025/3/29.
//

#import <UIKit/UIKit.h>
#import "IZYImageCacheProtocol.h"
typedef void(^ZYExternalCompletionBlock)(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, ZYImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL);

NS_ASSUME_NONNULL_BEGIN

@interface UIView (WebCache)

- (NSURL *)zy_lastLoadingUrl;

- (void)zy_externalSetImage:(NSString *)urlStr
                  completed:(ZYExternalCompletionBlock)completed;

- (void)zy_externalCancelCurrentLoading;
@end

NS_ASSUME_NONNULL_END
